package com.brillilab.service.module.message.template.impl.experiment;

import com.brillilab.service.module.message.template.AbstractMessageTemplate;
import com.brillilab.service.module.message.template.enums.MessageTypeEnum;
import lombok.Data;

/**
 * @author zlb
 * @Title: AdvisorCheckedTemp
 * @ProjectName brill_lab
 * @Description: 导师已审阅
 * @date 2019/5/28 9:55
 */
@Data
public class AdvisorCheckedTemp extends AbstractMessageTemplate {
    private String targetName;
    private String result;

    /**
     * 导师已审阅
     *
     * @param labId       实验室ID
     * @param receiverId  接收人ID
     * @param labMemberId 接收者实验室成员Id
     * @param targetName  实验目标名称
     * @param result      结果
     * @param referId     业务关联ID
     */
    public AdvisorCheckedTemp(Long labId, Long receiverId,Long labMemberId, String targetName, String result, Long referId) {
        super(labId, receiverId);
        super.setType(MessageTypeEnum.AdvisorChecked.getValue());
        super.setTitle("收到导师的审阅结果");
        String content = String.format("您的<span style='color:#F6AC2D'>%s</span><span>导师已审阅，结果为</span>" +
                "<span style='color:#F6AC2D'>%s</span>", targetName, result);
        super.setContent(content);
        super.setAppContent(String.format("您的%s导师已审阅，结果为>%s", targetName, result));
        this.labMemberId=labMemberId;
        this.targetName = targetName;
        this.result = result;
        this.referId = referId;
    }

}
